<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // call

    function test(name, age){
      console.log(this, name, age);
    }

    // test('lisi', 12);
    // 第一个参数用来改变函数中this, 从第二个参数往后传给函数的形参
    test.call({a:1, b:2}, 'lisi', 12);
  </script>
</body>
</html>